s = 'index luck lucky goods'


a = "hello"
b = "hello"
print(id(a))
print(id(b))
print(a is b)  # 输出 True
print(a == b)  # 输出 True

a = "hello world"
b = "hello world"
print(id(a))
print(id(b))

print(a is b)  # 输出 False
print(a == b)  # 输出 True

a = [1, 2, 3]
b = [1, 2, 3]
print(id(a))
print(id(b))
print(a is b)  # 输出 False
print(a == b)  # 输出 True

a = [1, 2, 3]
b = a
print(id(a))
print(id(b))
print(a is b)  # 输出 True
print(a == b)  # 输出 True


s1 = s.replace('i', '@@')
print(s1)

l = [1, 2, 3, 4, 1, ]
print(l.count(1))

# 拆包
t1 = (1, 2, 3)
a, b, c = t1
print(a, b, c)

t1 = (1, 2, 4, 5, 6, 7)
a, *b, c = t1
print(a)
print(b)
print(c)

#  print()我看支持  int 类型哦～
print('~' * 30)
print(1, 2, 3, )

message = 'tom is a king'
msg = message.capitalize()
print(msg)
msg = message.title()
print(msg)
msg = message.istitle()
print(msg)
msg = message.upper()
print(msg)
msg = message.lower()
print(msg)

l3 = [1, 2, 3, 6]
l3.insert(1, 100)
print(l3)
